using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using DesigningViews.Models;

namespace DesigningViews.Controllers
{
    public class CustomerController : Controller
    {
        //
        // GET: /Customer/

        public ViewResult Index()
        {
        	var customer = new Customer
        		{
                    Name = "Joe",
                    Email = "joe@gmail.com",
                    Occupation = "Underwater basket weaver",
					HomeAddress = new Address { Line1 = "123 abd", City = "Austin", State = "TX", ZipCode = "23434" },
					WorkAddress = new Address { Line1 = "345 abd", City = "Austin", State = "TX", ZipCode = "77897" }
				};

            return View(customer);
        }

    }
}
